package com.mapforge.filechooser;

import java.io.File;

import com.mapforge.io.IOHandlerInterface;
import com.mapforge.map.Tileset;

public class DefaultTilesetFileFilter extends IOHandlerFileFilter<Tileset> {

	public DefaultTilesetFileFilter(IOHandlerInterface<Tileset> iohandler,
			String description) {
		super(iohandler, description);
	}

	private static final ImageFileFilter imgFileFilter = new ImageFileFilter();

	public static ImageFileFilter getImageFileFilter() {
		return imgFileFilter;
	}
	
	public boolean accept(File f) {
		return super.accept(f) || imgFileFilter.accept(f);
	}
}
